<div class="layui-input-inline" id="box_{{field}}">
<input type="datetime" title="{{name}}" name="{{field}}" lay-verify="{{required}}" placeholder="请输入{{name}}" value="{{value}}" class="{{class}} layui-input" id="{{field}}">
</div>

<script>
layui.use("laydate", function () {
      var laydate = layui.laydate;
      laydate.render({
                elem: "#{{field}}",
                type:"datetime",
                format:"yyyy-MM-dd HH:mm:ss"
      });
})
</script>